evaluation of improper integrals using residue theorem